import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "@icon-park/vue-next/styles/index.css"
import Axios from 'axios'
import animated from 'animate.css'

const pinia = createPinia()
const app = createApp(App)
app.config.globalProperties.$http = Axios
app.use(pinia)
app.use(router).use(ElementPlus, { size: 'small', zIndex: 3000 })
app.use(animated)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// createApp(App).use(router).use(ElementPlus, { size: 'small', zIndex: 3000 }).mount('#app')

